package com.hamll.search.service;

import com.hamll.search.pojo.ItemDoc;
import com.hamll.search.pojo.RequestParams;
import com.hmall.common.dto.Item;
import com.hmall.common.dto.PageDTO;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

public interface SearchService {

    PageDTO<ItemDoc> findByPage(RequestParams requestParams);

    List<String> getSuggest(String key);

    Map<String, List<String>> filters(RequestParams params);

    void insert(Long id);

    void delete(Long id);
}
